package com.gc.server.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import com.gc.server.entity.BookTypeEntity;
import com.gc.server.vo.BookTypeVo;

            
/**
 * 绘本分类实体
 * 表名 book_type
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Nov 11 11:48:17 CST 2020
 */
@Data
public class BookTypeUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //分类名称
            @ExcelProperty("分类名称")
            private String name;
        
                        //排序
            @ExcelProperty("排序")
            private Long idx;
        
    
    public BookTypeUp() {

    }

    public BookTypeVo toVo() {

        BookTypeEntity entity = new BookTypeEntity();
            BookTypeVo vo = new BookTypeVo(entity);
                                    entity.setId(id);
            
                                    entity.setName(name);
            
                                    entity.setIdx(idx);
            
        
        return  vo;
    }



}
